package cn.wolfcode.qo;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
//封装分页参数
public class QueryObject {
    //当前页
    private int currentPage=1;
    //每一页数据条数
    private int pageSize=3;
    public int getStart(){
        return (currentPage-1) * pageSize;
    }
}
